/*
 * Copyright (c) 2023-7-26
 * 说明:
 */

package goods

import (
	"go.mongodb.org/mongo-driver/bson/primitive"
	"time"
)

// Deduction 抵扣卷
type Deduction struct {
	CouponID primitive.ObjectID `bson:"couponID"`
	Value    int                `bson:"value"`
	//Min      int                `bson:"min"` //最少使用数
	Max       int       `bson:"max"`    //最多使用书,判断在单次
	Weight    int       `bson:"weight"` // 权重，数字越高就越提前计算
	NotBefore time.Time `bson:"notBefore"`
	NotAfter  time.Time `bson:"notAfter"`
}
